﻿

Public Class ManufactureBUS
    Private manudao As New ManufactureDAO()
    Public Function Manufacture_List() As DataSet
        Return manudao.Manufacture_List()
    End Function

    'Public Function Manufacturers_Delete(ByVal ManufacturerID As Integer) As Boolean
    '    Return manudao.Manufacturers_Delete(ManufacturerID)
    'End Function

    Public Function Manufacturers_Select(ByVal ManufacturerID As Integer) As DataSet
        Return manudao.Manufacturers_Select(ManufacturerID)
    End Function

    Public Function Manufacturers_Insert(ByVal ManufacturerName As String, _
                                         ByVal Description As String, _
                                         ByVal CreatedOn As Date, _
                                         ByVal CreatedBy As String, _
                                         ByVal ModifiedOn As Date, _
                                         ByVal ModifiedBy As String) As Boolean
        Return manudao.Manufacturers_Insert(ManufacturerName, Description, CreatedOn, CreatedBy, ModifiedOn, ModifiedBy)
    End Function

    Public Function Manufacturers_Update(ByVal ManufacturerID As Integer, _
                                         ByVal ManufacturerName As String, _
                                         ByVal Description As String, _
                                         ByVal CreatedOn As Date, _
                                         ByVal CreatedBy As String, _
                                         ByVal ModifiedOn As Date, _
                                         ByVal ModifiedBy As String) As Boolean
        Return manudao.Manufacturers_Update(ManufacturerID, ManufacturerName, Description, CreatedOn, CreatedBy, ModifiedOn, ModifiedBy)

    End Function


    Public Function Manufacturers_Delete(ByVal ManufacturerID As Integer) As Boolean
        Return manudao.Manufacturers_Delete(ManufacturerID)
    End Function
End Class
